<template>
  <div class="form-config-container">
    <el-form label-position="top">

      <el-form-item :label="$t('fm.config.form.labelPosition.title')">
        <el-radio-group v-model="data.labelPosition">
          <el-radio-button label="left">{{$t('fm.config.form.labelPosition.left')}}</el-radio-button>
          <el-radio-button label="right">{{$t('fm.config.form.labelPosition.right')}}</el-radio-button>
          <el-radio-button label="top">{{$t('fm.config.form.labelPosition.top')}}</el-radio-button>
        </el-radio-group>
      </el-form-item>

      <el-form-item :label="$t('fm.config.form.labelWidth')">
        <el-input-number v-model="data.labelWidth" :min="0" :max="200" :step="10"></el-input-number>
      </el-form-item>

      <el-form-item :label="$t('fm.config.form.size.title')">
        <el-radio-group v-model="data.size">
          <el-radio-button label="medium">{{$t('fm.config.form.size.medium')}}</el-radio-button>
          <el-radio-button label="small">{{$t('fm.config.form.size.small')}}</el-radio-button>
          <el-radio-button label="mini">{{$t('fm.config.form.size.mini')}}</el-radio-button>
        </el-radio-group>
      </el-form-item>

      <el-form-item :label="$t('fm.config.form.padding')">
        <el-input v-model="data.padding"></el-input>
      </el-form-item>

      <el-form-item :label="$t('fm.config.form.labelSuffix')">
        <el-input v-model="data.labelSuffix"></el-input>
      </el-form-item>

      <el-form-item :label="$t('fm.config.form.property')">
        <el-checkbox v-model="data.hideRequiredAsterisk">{{$t('fm.config.form.hideRequiredAsterisk')}}</el-checkbox>
        <el-checkbox v-model="data.showMessage">{{$t('fm.config.form.showMessage')}}</el-checkbox>
        <el-checkbox v-model="data.inlineMessage">{{$t('fm.config.form.inlineMessage')}}</el-checkbox>
        <el-checkbox v-model="data.statusIcon">{{$t('fm.config.form.statusIcon')}}</el-checkbox>
        <el-checkbox v-model="data.validateOnRuleChange">{{$t('fm.config.form.validateOnRuleChange')}}</el-checkbox>
        <el-checkbox v-model="data.disabled">{{$t('fm.config.form.disabled')}}</el-checkbox>
      </el-form-item>

    </el-form>
  </div>
</template>

<script>
export default {
  props: ['data']
}
</script>
